import request from '@/utils/request'

// 查询汽油种类列表
export function listGastype(query) {
  return request({
    url: '/ruoyi-xsc/gastype/list',
    method: 'get',
    params: query
  })
}

// 查询汽油种类详细
export function getGastype(id) {
  return request({
    url: '/ruoyi-xsc/gastype/' + id,
    method: 'get'
  })
}

// 新增汽油种类
export function addGastype(data) {
  return request({
    url: '/ruoyi-xsc/gastype',
    method: 'post',
    data: data
  })
}

// 修改汽油种类
export function updateGastype(data) {
  return request({
    url: '/ruoyi-xsc/gastype',
    method: 'put',
    data: data
  })
}

// 删除汽油种类
export function delGastype(id) {
  return request({
    url: '/ruoyi-xsc/gastype/' + id,
    method: 'delete'
  })
}
